---
title: Nebius
---

Nebius Embedder is a class that allows you to embed documents using Nebius AI Studio's embedding models. It extends the OpenAI Embedder class and uses a compatible API interface.

### Parameters

| Parameter | Type | Description | Default |
|-----------|------|-------------|---------|
| `id` | `str` | The model ID to use for embeddings | `"BAAI/bge-en-icl"` |
| `dimensions` | `int` | Output dimensions of the embedding | `1024` |
| `encoding_format` | `Literal["float", "base64"]` | Format of the embedding output | `"float"` |
| `user` | `Optional[str]` | A unique identifier representing your end-user | `None` |
| `api_key` | `Optional[str]` | Nebius API key | Environment variable `NEBIUS_API_KEY` |
| `organization` | `Optional[str]` | Organization ID for API requests | `None` |
| `base_url` | `str` | Base URL for API requests | `"https://api.studio.nebius.com/v1/"` |
| `request_params` | `Optional[Dict[str, Any]]` | Additional parameters for embedding requests | `None` |
| `client_params` | `Optional[Dict[str, Any]]` | Additional parameters for client initialization | `None` |
| `openai_client` | `Optional[OpenAIClient]` | Pre-configured OpenAI client | `None` |
| `enable_batch` | `bool` | Enable batch processing to reduce API calls | `False` |
| `batch_size` | `int` | Number of texts to process in each API call | `100` |
